#pragma once


// CImageViewer

class CImageViewer : public CListCtrl
{
	DECLARE_DYNAMIC(CImageViewer)

public:
	CImageViewer();
	virtual ~CImageViewer();
	BOOL InsertImage(int index, LPCTSTR filePath, LPCTSTR titleStr = NULL);
	BOOL ReplaceImage(int index, LPCTSTR filePath, LPCTSTR titleStr = NULL);
	void DeleteImage(int index);
	void DeleteAllImage();
private:
	CImageList m_unuse_img_list;
	CBitmap  m_unuse_bmp;
	int m_itemH;
	int m_itemW;
protected:
	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL Create(DWORD dwStyle, const RECT& rect, CWnd* pParentWnd, UINT nID, int itemW, int itemH);
	afx_msg void OnNMCustomdraw(NMHDR *pNMHDR, LRESULT *pResult);
};


